﻿import request from '@/utils/request';
// list
export const gonggaoxinxiList = (params) => {
    return request({
        url: '/gonggaoxinxi/page',
        method: 'post',
        data: params,
    })
};
export const gonggaoxinxiDetail = (id) => {
    return request({
        url: '/gonggaoxinxi/'+id,
        method: 'get',
    })
};
// add
export const gonggaoxinxiSave = (params) => {
    return request({
        url: '/gonggaoxinxi',
        method: 'post',
        data: params,
    })
};
// updt
export const gonggaoxinxiEdit = (params) => {
    return request({
        url: '/gonggaoxinxi',
        method: 'put',
        data: params,
    })
};
// delete
export const gonggaoxinxiDelete = (id) => {
    return request({
        url: '/gonggaoxinxi/'+id,
        method: 'delete',
    })
};
// pldel
export const gonggaoxinxiDeleteList = (gonggaoxinxis) => {
    return request({
        url: '/gonggaoxinxi/deleteList',
        data:{list:gonggaoxinxis},
        method: 'post',
    })
};
// all
export const gonggaoxinxiAllList = () => {
    return request({
        url: '/gonggaoxinxi',
        method: 'get',
    })
};

